﻿using GrainManage.Web.Resources;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;

namespace GrainManage.Web.Models.Trade
{
    public class UpdateTradeModel : AddTradeModel
    {
        [Required(ErrorMessageResourceType = typeof(TradeResx), ErrorMessageResourceName = "TradeIDRequired")]
        [Range(0, int.MaxValue, ErrorMessageResourceType = typeof(TradeResx), ErrorMessageResourceName = "TradeIDRanged")]
        [Display(ResourceType = typeof(TradeResx), Name = "TradeID")]
        public int TradeID { get; set; }
    }
}